File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,24 @@ This page can help when migrating Taskgraph across major versions.
19
19
for it manually. If ``use-caches `` was previously set to ``false ``, omit
20
20
``checkout `` in the example above. If ``use-caches `` was previously set to
21
21
``true ``, replace ``true `` with the value above (including ``checkout ``).
22
+ * Invert any usage of the dict keys and values returned by `get_ancestors `:
23
+
24
+ For example, if you were using:
25
+
26
+ .. code-block :: python
27
+
28
+ for label, taskid in get_ancestors(... ):
29
+ ...
30
+
31
+ Change it to:
32
+
33
+ .. code-block :: python
34
+
35
+ for taskid, label in get_ancestors(... ):
36
+ ...
37
+
38
+ Note that due to this change `get_ancestors ` may return multiple tasks with
39
+ the same label now, which your code may need to deal with.
22
40
23
41
11.x -> 12.x
24
42
------------
You can’t perform that action at this time.
0 commit comments